package com.web.manager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.web.manager.pojo.Passage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PassageMapper extends BaseMapper<Passage> {

    @Select("select * from passage_list where id = #{id}")
    Passage selectById2(Integer id2);

    @Select("select * from passage_list where publisher = #{publisher}")
    List<Passage> getByPublisher(String publisher);
}
